package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.Allocation;
import com.woniuxy.mapper.AllocationMapper;
import com.woniuxy.service.AllocationService;
@Service
public class AllocationServiceImpl implements AllocationService{
	@Autowired
	private AllocationMapper allocationMapper;

	@Override
	public List<Allocation> findAllocation() {
		return allocationMapper.findAllocation();
	}

	@Override
	public List<Allocation> findAllocationById(String aorder) {
		return allocationMapper.findAllocationById(aorder);
	}

	@Override
	public int insertAllocation(Allocation allocation) {
		int i=allocationMapper.insertAllocation(allocation);
		return i;
	}

	@Override
	public int deleteAllocationById(String aorder) {
		int i=allocationMapper.deleteAllocationById(aorder);
		return i;
	}
	
	
}
